package dto;

import entity.Train;

public class TrainVO extends ModeTransportVO {
	private static final long serialVersionUID = 1L;
	private String type;

	public String toString() {
		return "[" + id + ", " + libelle + ", " + type + "]";
	}

	public TrainVO() {
		super();
	}

	public TrainVO(String libelle, String type) {
		super(libelle);
		this.type = type;
	}

	public TrainVO(Train a) {
		super(a);
		if (a != null){
			this.type = a.getType();
		}
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
